package com.dd.cloud.open.service;

import com.dd.cloud.open.req.api.*;
import com.dd.cloud.open.res.api.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zk
 */
public interface IApiService {
    /**
     * ai开方
     *
     * @param request
     * @param response
     * @param req      开发者信息,疾病,症状...参数
     * @return
     */
    DiagnoseRes ask(HttpServletRequest request,
                    HttpServletResponse response,
                    DiagnoseReq req);

    /**
     * 查询科室
     *
     * @param request
     * @param response
     * @param req      开发者信息
     * @return
     */
    List<DepartmentRes> department(HttpServletRequest request,
                                   HttpServletResponse response,
                                   AuthReq req);

    /**
     * 查询一级疾病,二级疾病
     *
     * @param request
     * @param response
     * @param req      科室,疾病参数
     * @return
     */
    List<DiseaseRes> disease(HttpServletRequest request,
                             HttpServletResponse response,
                             DiseaseReq req);

    /**
     * 查询症状
     *
     * @param request
     * @param response
     * @param req      疾病参数
     * @return
     */
    List<SymptomRes> symptom(HttpServletRequest request,
                             HttpServletResponse response,
                             SymptomReq req);

    /**
     * 查询专家信息
     *
     * @param request
     * @param response
     * @param req      疾病参数
     * @return
     */
    DoctorRes doctor(HttpServletRequest request,
                     HttpServletResponse response,
                     DoctorReq req);
}
